package org.example.factoryMethod;

/**
 * @BelongsProject: javaFoundation
 * @BelongsPackage: org.example.factoryMethod
 * @Author: dtq
 * @CreateTime: 2023-12-14  16:07
 * @Description: TODO
 * @Version: 1.0
 */
public class Demo {

    public static void main(String[] arg) {
        AbstractFactory miFactory = new HongMiFactory();
        AbstractFactory appleFactory = new IPhoneFactory();
        miFactory.makePhone();
        appleFactory.makePhone();
    }
}